package main

import (
	"bitcoin/core"
)

func main() {
	// bc := core.NewBlockChain()
	// bc.AddBlock("Send 1 BTC to Demo")
	// bc.AddBlock("Send 2 more BTC to Demo")
	// for _, block := range bc.Blocks {
	// 	fmt.Printf("Prev: %x\n", block.PrevBlockHash)
	// 	fmt.Printf("Data: %s\n", block.Data)
	// 	fmt.Printf("Hash: %x\n", block.Hash)
	// 	pow := core.NewProofOfWork(block)
	// 	fmt.Printf("PoW: %s\n", strconv.FormatBool(pow.Validate()))
	// }
	bc := core.NewBlockChain()
	defer bc.Db.Close()
	cli := core.CLI{
		Bc: bc,
	}
	cli.Run()
}
